{include file="admin/header.htm"}
<table align="center" cellpadding="0" cellspacing="1" class="table_list">
    <caption>碎片列表</caption>
    <tr>
        <th width="5%">ID</th>
        <th width="20%">名称</th>
        <th width="30%">管理操作</th>
    </tr>
    
    {foreach $blocks.items as $id => $v}
    <tr>
        <td class="align_c">{$v.id}</td>
        <td>{$v.block_name}</td>
        <td class="align_c">
            <a href="{$smarty.const.ADMIN_NAME}?m=admin&c=block&a=add_block&tplid={$v.tpl_id}&id={$v.id}">编辑</a> |
            <a href="{$smarty.const.ADMIN_NAME}?m=admin&c=block&a=man_block&op=del&id={$v.id}">删除</a>
        </td>
    </tr>
    {/foreach}
</table>
<div class="viciao" style="margin:5px 7px;">{$blocks.pages}</div>
{include file="admin/footer.htm"}